Dompdf\Css\Stylesheet D

Total Complexity 290
Dependencies 9
Dependents 2
Total lines 1,732
Lines of code 925
Logical lines of code 686
Comment lines 506
Methods 28
Properties 13

Methods 28

Method Rating Maintainability Complexity Lines of code
_css_selector_to_xpath()
D
10
95 294
apply_styles()
D
19
63 196
_parse_css()
C
33 24 94
load_css_file()
B
38 22 62
_parse_properties()
A
45 14 38
_parse_sections()
A
47 12 33
resolve_url()
A
49 10 29
_selector_an_plus_b()
A
53 10 19
_parse_font_face()
S
50 5 27
_parse_import()
S
51 5 27
_specificity()
S
53 5 20
add_style()
S
63 3 11
__toString()
S
65 3 9
__construct()
S
61 2 12
load_css()
S
72 2 6
create_style()
S
71 2 6
lookup()
S
71 2 6
set_protocol()
S
82 1 3
get_page_styles()
S
83 1 3
get_base_path()
S
83 1 3
get_host()
S
83 1 3
get_protocol()
S
83 1 3
get_dompdf()
S
83 1 3
set_base_path()
S
82 1 3
set_host()
S
82 1 3
getDefaultStylesheet()
S
72 1 5
setFontMetrics()
S
77 1 4
getFontMetrics()
S
82 1 3